package com.xinsoft.entity.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 物料销售价格明细
 * @TableName scm_sale_price
 */
@TableName(value ="scm_sale_price")
@Data
public class ScmSalePrice implements Serializable {
    /**
     * 物料销售价格明细id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 物料ID
     */
    @TableField(value = "material_id")
    private Integer materialId;

    /**
     * 物料名称
     */
    @TableField(value = "material_name")
    private String materialName;

    /**
     * 销售单价
     */
    @TableField(value = "tax_unit_price")
    private BigDecimal taxUnitPrice;

    /**
     * 销售数量
     */
    @TableField(value = "sale_num")
    private BigDecimal saleNum;

    /**
     * 销售时间
     */
    @TableField(value = "sale_time")
    private Date saleTime;

    /**
     * 客户ID
     */
    @TableField(value = "client_id")
    private Integer clientId;

    /**
     * 等级名称
     */
    @TableField(value = "level_name")
    private String levelName;

    /**
     * 客户名称
     */
    @TableField(value = "client_name")
    private String clientName;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}